package com.shinbada.modules.sys.entity;


import com.shinbada.core.persistence.DataEntity;
import com.shinbada.excel.annotation.Excel;
import com.shinbada.excel.annotation.ExcelField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 访问日志Entity
 *
 * @author initcap
 * @version 2021-04-21
 */
@Data
@ApiModel
@Excel("访问日志")
public class ViewLog extends DataEntity<ViewLog> {

    private static final long serialVersionUID = 1L;

    @ExcelField(value = "账号")
    private String loginname;
    @ApiModelProperty("姓名")
    @ExcelField(value = "姓名")
    private String username;
    @ApiModelProperty("用户角色显示")
    @ExcelField(value = "角色")
    private String role;
    @ApiModelProperty("模块")
    @ExcelField(value = "模块")
    private String model;
    @ApiModelProperty("状态")
    @ExcelField(value = "状态")
    private String status;
    @ApiModelProperty("场景")
    @ExcelField(value = "场景")
    private String scene;
    @ExcelField(value = "操作时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date opTime;


    @ApiModelProperty("开始日期")
    private Date beginTime;
    @ApiModelProperty("结束日期")
    private Date endTime;
    @ApiModelProperty("用户角色查询，传角色id")
    private String roleSearch;

    public ViewLog() {
        super();
    }

    public ViewLog(String id) {
        super(id);
    }

    public Date getOpTime() {
        return super.createDate;
    }
}
